MercadoPago\Woocommerce\Gateways\CreditsGateway S

Total Complexity 28
Dependencies 2
Dependents 2
Total lines 522
Lines of code 346
Logical lines of code 78
Comment lines 86
Methods 18
Properties 0

Methods 18

Method Rating Maintainability Complexity Lines of code
init_form_fields()
A
34 2 107
renderCreditsBanner()
S
49 4 32
process_payment()
S
51 4 26
getCreditsInfoTemplate()
S
49 1 31
isAvailable()
S
64 3 10
getBenefits()
S
52 1 28
getPaymentFieldsParams()
S
53 1 25
__construct()
S
52 1 23
setDefaultTooltip()
S
73 2 5
getCreditsPreviewImage()
S
61 1 13
getCreditsGifPath()
S
60 1 13
getCheckoutVisualization()
S
62 1 11
getCheckoutName()
S
81 1 3
validate_fields()
S
82 1 3
payment_fields()
S
73 1 6
payment_scripts()
S
80 1 3
activeByDefault()
S
75 1 4
getTooltipKeyByID()
S
80 1 3